package com.liliudong.pinkyponk.core.exception;

import com.liliudong.pinkyponk.core.constant.ResponseMessage;

/**
 * gloable exception
 *
 * @author liliudong
 * @date 2022-06-03 17:08
 **/
public class PinkyPonkGloableException extends RuntimeException {

    private final ResponseMessage responseMessage;

    public PinkyPonkGloableException(ResponseMessage responseMessage) {
        super(responseMessage.message);
        this.responseMessage = responseMessage;
    }

    public ResponseMessage getResponseMessage() {
        return responseMessage;
    }
}
